<template>
  <div>
    c1组件
    <input
      type="text"
      v-model='str'
    >
  </div>
</template>
<script>
// @ is an alias to /src
export default {
  name: "c1",
  data() {
    return {
      str: "",
    };
  },
  destroyed() {
    console.log("c1销毁了");
  },
  activated() {
    console.log("组件激活");
  },
  deactivated() {
    console.log("组件休眠");
  },
};
</script>
<style lang="less">
</style>